package com.framework.entity;
/*************************************************************************
 * 文件名称 ：Global.java                   
 * 描述说明 ：系统全局性参数设置
 * 
 * 创建信息 : create by 刘佳佳 on 上午11:35:35
 * 修订信息 : modify by ( ) on (date) for ( )
 * 
 * 版权信息 : Copyright (c) 2015 扬州北斗科技有限公司 
 **************************************************************************/

public class Global {
	 
	 public static final int OPEN=0;
	 public static final int CLOSE=1;
	 
	 public static final String SOPEN="0";
	 public static final String SCLOSE="1";
	 
	 public static final Integer PAGESIZE=10;
	 
	 public static final Integer DISTRIBUTOR=3;//经销商
	 public static final Integer AISHANG=0;//爱尚
	 public static final Integer SUPPLIER=1;//基地
	 public static final Integer SHOP=2;//花店
	 public static final String HOST_URL="http://wx.5d.com.cn/wx";
	 public static final String HUAYI_ID="40288adb4f71c004014f71cf76890000";
	//轮辐图片宽和高
	public static final int RUNPICWIDTH=828;   //960
	public static final int RUNPICHIEGHT=248;  //540
	 
	//团购图片宽和高
	public static final int GROUPPICWIDTH=220;
	public static final int GROUPPICHIEGHT=280;
	
	//产品图片宽和高
	public static final int GOODSPICWIDTH=480;
	public static final int GOODSPICHIEGHT=360;
	
	//产品详细页面图片宽和高
	public static final int GOODSDETAILPICWIDTH=480;
	public static final int GOODSDETAILPICHIEGHT=360;
	
	//ICONS 尺寸
	public static final int GOODSICONSWIDTH=136;
	public static final int GOODSICONSHIEGHT=136;
	
	//根据传递的参数，判断不同比例图片
	public static final int RUNPIC=0;
	public static final int GROUPPIC=1;
	public static final int GOODSPIC=2;
	public static final int GOODSDETAILPIC=3;
	public static final int GOODSICONPIC=4;
	public static final int GOODSSUPPLIERPIC=5;
	public static final int APPLYSERVICEPIC=6;
	public static final int STORERPIC=7;
	public static final int UAERPIC=8;
	public static final int SECKILLPIC=9;
	
	public static final String URL_NAME="http://ht.5d.com.cn";
	public static final String URL_NAME_QURL="http://m.iishang.com/";
	
	
	//属性标签文件类型
	public static final Integer LABLEIMAGE=20;
	
	 //***************************************************京东接口参数***********************************
	
	public  static final String ACCESSTOKEN_SUCCESS="0";
	public  static final String ACCESSTOKEN_FIELD="19";
	 
	 public static final String WEBSOCKET_USERNAME="websocket_username";
	 
	 public static final int  END_PRIZE = 2;
	 
	 public static final int  THQTK_WITHDRAW = 1; //退货且退款
	 public static final int  TK_WITHDRAW = 3;   //退款
	 public static final int  TH_WITHDRAW = 2; 		//退货
	 public static final String WX_IMAGE_URL="/sso/resources/images/";
	 
	 public static final String TIME_TODAY = "today";
	 
	 
	//***************************************************淘宝接口参数***********************************
	 public  static final String ACCESSTOKEN_FIELD_TB="27";

	 //阿里云OSS ACCESSKEY
	 public static final String ACCESSKEY="J1LfK6t4XGUDjLRJ";
	 //阿里云OSS 密钥
	 public static final String ACCESSKEYSECRET="62ESxIkvirtICzQgSwvfnO8WV6s8cC";
	 //阿里云OSS 对象节点（杭州）
	 public static final String ENDPOINT="http://oss-cn-hangzhou.aliyuncs.com";
	 //阿里云OSS 对象调用地址前缀
	 public static final String OSSURL="http://im.51zhonghua.com/";
	 
	 //excel文件地址
	 public static final String EXCURL="http://120.26.237.127";
	 
	 //jpg
	 public static final String JPEG="image/jpeg";
	 
	 //png
	 public static final String PNG="image/png";
	 
	 //***************************************************负载所用key***********************************
	 public static final String MAP_ID="mapID";//账号对应仓库的ID
	 public static final String MENUS="menujson";//菜单json
	 public static final String USER_NAME="userName";//登陆名中文
	 public static final String USER_ID="userid";//登陆者ID
	 
	 public static final String MAPDISTRIBUTOR="distributor";//经销商
	 
	 public static final String STATICRESOURCES_URL="http://120.55.116.58:8089";
	 
	 public static final String STATICRESOURCES_URL2="http://192.168.1.26";
	 
	 public static final String IMAGEURL="http://ht.5d.com.cn/";
	 
	 
	 public static final String RECHARGE_TYPE="bookMoney";
	 
	 
	 public static final int VIP_DEGREE = 6;
	 
	 
	 public static final String ORDER_THIRD_URL_TEST = "http://wx.5d.com.cn:8081/bsi";//推单测试地址
//	 public static final String ORDER_THIRD_URL_TEST = "http://localhost:8080/bsi";//推单测试地址
	
	 public static final String ORDER_PUSH_URL = ORDER_THIRD_URL_TEST + "/orderThirdInterface/insertOrderThird.action";//推单地址
	 public static final String ADD_FLOWERSKU_URL = ORDER_THIRD_URL_TEST + "/orderThirdInterface/toDoFlowerSku.action";//推单地址
	
	 public static final String SESSION_KEY = "resources/config/SESSION_KEY.txt";  // sessionKey 存放路径
	 public static final String ACCESS_TOKEN = "resources/config/ACCESS_TOKEN.txt"; // 微信ACCESS_TOKEN
	 public static final String JSAPI_TICKET = "resources/config/JSAPI_TICKET.txt"; // 微信JSAPI_TICKET
	
	 public static final String GET_SEESION_KEY_URL = ORDER_THIRD_URL_TEST + "/orderThirdInterface/toGetSessionKey.action";//获取sessionKey时所使用的接口地址
		
	 public static final String LOGIN_NAME = "18500000004";            //获取sessionKey时所需的loginName
	 public static final String PWD = "1";					//获取sessionKey时所需的pwd
	 public static final String PLATFORM = "2";				//获取sessionKey时所需的平台类别
	 
	 
	 /*****************************统一支付接口支付类别***************************/
		public static final String ORDER_TYPE= "order" ; //订单支付
		
		public static final String OTHER_TYPE= "other" ; //其他支付
		
		
		/******************************统一支付错误代码*****************************/
		/**
		 * 请求成功
		 */
		public static final String REQUEST_SUCCESS="0"; 
		
		
		/**
		 * 参数错误
		 */
		public static final String ERROR_PARAMS="600001"; 
		
		/**
		 * 无效的口令
		 */
		public static final String INVALID_TOKEN="600002";   
		
		/**
		 *无效的库存操作类别 
		 */
		public static final String INVALID_TYPE="600003";   
		
		/**
		 * 重复的订单号
		 */
		public static final String ECHO_CODE="600004";   
		
		/**
		 * 无效的stockId
		 */
		public static final String INVALID_STOCKID="600005";
		
		/**
		 * 错误的金额
		 */
		public static final String ERROR_MONEY="600006";
		
		/**
		 * 错误的平台信息
		 */
		public static final String ERROR_PLATFORM="600007";

		/**
		 * 错误的流水类别
		 */
		public static final String ERROR_FINANCIALTYPE="600008";
		
		/**
		 * 其他错误 
		 */
		public static final String OTHER_ERROR="600009";
		
		/**
		 * 参数转换错误
		 */
		public static final String PARSE_ERROR="600010";
		
		/**
		 * 变动库存不对
		 */
		public static final String STOCK_NUM="600011";
		/**
		 * 设置库存不可小于占用量
		 */
		public static final String STOCK_NUM2="600011-2";
		
		/**
		 * 无效的唯一性编码
		 */
		public static final String INVALID_UNICITYCODE="600012";
		
		/**
		 * 无效的收支类别
		 */
		public static final String INVALID_INCOMETYPE="600013";
		
		/**
		 * 错误的优惠券金额
		 */
		public static final String ERROR_COUPON="600014";
		
		/**
		 * 优惠券余额不足或金额不对
		 */
		public static final String COUPON_INSUFFICIENT="600015";
		 
		/*********************************平台获取token秘钥************************************/
		public static final String PLATFORM_SECRET="jgSdlQ43gTTFXJHgdiF7VhQHQb3UIKUipCAD2YocImELqnJ/v99Lobe0/KfLaT98YwpYZwJo5VjhRgiViqn35Q=="; 
		
		
		/******************************获取token错误代码*****************************/
		/**
		 * 秘钥错误
		 */
		public static final String ERROR_SECRET="610001";
		/**
		 * 未知平台
		 */
		public static final String UNKNOWN_PLATFORM="610002";
		
		/**
		 *请求者集合
		 */
		public static final String REQUEST_FROM = "fcc-wxtwo-dcm-boss-sso-tmc-jos-yhd-fbcc-aimall";
		
	 
}
